package com.misolab.util.json;

import java.util.HashMap;
import java.util.Map;

import org.json.JSONObject;
import org.json.JSONString;

public class Update implements JSONString {
	
	Map<String, String> data; 
	
	public Update(String version, String url, String message) {
		super();
		data = new HashMap<String, String>();
		data.put("version", version);
		data.put("url", url);
		data.put("message", message);
	}

	@Override
	public String toJSONString() {
		return new JSONObject(data).toString();
	}

}
